package com.taoym.voucher.xcx.entity.dto;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @coder taoym
 * @datetime 2021/6/8 15:35
 * @desc
 */
@Data
public class XcxGetSearchDealsShopDTO implements Serializable {

    @ApiParam(value = "一级类目")
    @NotNull(message = "一级类目不能为空")
    private String cat0Id;
    @ApiParam(value = "经度")
    private String lng;
    @ApiParam(value = "纬度")
    private String lat;
    @ApiParam(value = "城市ID")
    private Integer cityId;
    @ApiParam(value = "关键词")
    private String keyWords;
    @ApiParam(value = "当前页码")
    @NotNull(message = "当前页码不能为空")
    private Integer page;
    @ApiParam(value = "每页显示的数量")
    @NotNull(message = "每页显示的数量不能为空")
    @Max(value = 100, message = "每页最多显示100条")
    private Integer size;
}
